// import axios from 'axios';
// const request = new axios('https://example.com/api/data', {  
//   method: 'GET', // 指定请求方法  
//   headers: new Headers({  
//     'Content-Type': 'application/json', // 设置请求头  
//     'Origin': 'https://www.mafengwo.cn' // 设置Origin  
//   })  
// });  
  
import data from './data.json'

export const getData = () => {
    // return request.get('https://www.mafengwo.cn/sales/detail/index/info?id=9296043')
    return new Promise<void>((resolve, reject) => {  
        try {
            setTimeout(() => {  
                // eslint-disable-next-line @typescript-eslint/no-explicit-any
                resolve(data as any);  
            }, 1000);  
        } catch (error) {
            reject()
        }
    });  
}
